home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / chardet / nsIDocumentCharsetInfo.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  6KB  |  162 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDocumentCharsetInfo.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIDocumentCharsetInfo_h__
  6. #define __gen_nsIDocumentCharsetInfo_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. #ifndef __gen_nsIAtom_h__
  14. #include "nsIAtom.h"
  15. #endif
  16.  
  17. /* For IDL files that don't want to include root IDL files. */
  18. #ifndef NS_NO_VTABLE
  19. #define NS_NO_VTABLE
  20. #endif
  21.  
  22. /* starting interface:    nsIDocumentCharsetInfo */
  23. #define NS_IDOCUMENTCHARSETINFO_IID_STR "2d40b291-01e1-11d4-9d0e-0050040007b2"
  24.  
  25. #define NS_IDOCUMENTCHARSETINFO_IID \
  26.   {0x2d40b291, 0x01e1, 0x11d4, \
  27.     { 0x9d, 0x0e, 0x00, 0x50, 0x04, 0x00, 0x07, 0xb2 }}
  28.  
  29. class NS_NO_VTABLE nsIDocumentCharsetInfo : public nsISupports {
  30.  public: 
  31.  
  32.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOCUMENTCHARSETINFO_IID)
  33.  
  34.   /* attribute nsIAtom forcedCharset; */
  35.   NS_IMETHOD GetForcedCharset(nsIAtom * *aForcedCharset) = 0;
  36.   NS_IMETHOD SetForcedCharset(nsIAtom * aForcedCharset) = 0;
  37.  
  38.   /* attribute boolean forcedDetector; */
  39.   NS_IMETHOD GetForcedDetector(PRBool *aForcedDetector) = 0;
  40.   NS_IMETHOD SetForcedDetector(PRBool aForcedDetector) = 0;
  41.  
  42.   /* attribute nsIAtom parentCharset; */
  43.   NS_IMETHOD GetParentCharset(nsIAtom * *aParentCharset) = 0;
  44.   NS_IMETHOD SetParentCharset(nsIAtom * aParentCharset) = 0;
  45.  
  46.   /* attribute PRInt32 parentCharsetSource; */
  47.   NS_IMETHOD GetParentCharsetSource(PRInt32 *aParentCharsetSource) = 0;
  48.   NS_IMETHOD SetParentCharsetSource(PRInt32 aParentCharsetSource) = 0;
  49.  
  50. };
  51.  
  52. /* Use this macro when declaring classes that implement this interface. */
  53. #define NS_DECL_NSIDOCUMENTCHARSETINFO \
  54.   NS_IMETHOD GetForcedCharset(nsIAtom * *aForcedCharset); \
  55.   NS_IMETHOD SetForcedCharset(nsIAtom * aForcedCharset); \
  56.   NS_IMETHOD GetForcedDetector(PRBool *aForcedDetector); \
  57.   NS_IMETHOD SetForcedDetector(PRBool aForcedDetector); \
  58.   NS_IMETHOD GetParentCharset(nsIAtom * *aParentCharset); \
  59.   NS_IMETHOD SetParentCharset(nsIAtom * aParentCharset); \
  60.   NS_IMETHOD GetParentCharsetSource(PRInt32 *aParentCharsetSource); \
  61.   NS_IMETHOD SetParentCharsetSource(PRInt32 aParentCharsetSource); 
  62.  
  63. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  64. #define NS_FORWARD_NSIDOCUMENTCHARSETINFO(_to) \
  65.   NS_IMETHOD GetForcedCharset(nsIAtom * *aForcedCharset) { return _to GetForcedCharset(aForcedCharset); } \
  66.   NS_IMETHOD SetForcedCharset(nsIAtom * aForcedCharset) { return _to SetForcedCharset(aForcedCharset); } \
  67.   NS_IMETHOD GetForcedDetector(PRBool *aForcedDetector) { return _to GetForcedDetector(aForcedDetector); } \
  68.   NS_IMETHOD SetForcedDetector(PRBool aForcedDetector) { return _to SetForcedDetector(aForcedDetector); } \
  69.   NS_IMETHOD GetParentCharset(nsIAtom * *aParentCharset) { return _to GetParentCharset(aParentCharset); } \
  70.   NS_IMETHOD SetParentCharset(nsIAtom * aParentCharset) { return _to SetParentCharset(aParentCharset); } \
  71.   NS_IMETHOD GetParentCharsetSource(PRInt32 *aParentCharsetSource) { return _to GetParentCharsetSource(aParentCharsetSource); } \
  72.   NS_IMETHOD SetParentCharsetSource(PRInt32 aParentCharsetSource) { return _to SetParentCharsetSource(aParentCharsetSource); } 
  73.  
  74. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  75. #define NS_FORWARD_SAFE_NSIDOCUMENTCHARSETINFO(_to) \
  76.   NS_IMETHOD GetForcedCharset(nsIAtom * *aForcedCharset) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetForcedCharset(aForcedCharset); } \
  77.   NS_IMETHOD SetForcedCharset(nsIAtom * aForcedCharset) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetForcedCharset(aForcedCharset); } \
  78.   NS_IMETHOD GetForcedDetector(PRBool *aForcedDetector) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetForcedDetector(aForcedDetector); } \
  79.   NS_IMETHOD SetForcedDetector(PRBool aForcedDetector) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetForcedDetector(aForcedDetector); } \
  80.   NS_IMETHOD GetParentCharset(nsIAtom * *aParentCharset) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParentCharset(aParentCharset); } \
  81.   NS_IMETHOD SetParentCharset(nsIAtom * aParentCharset) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetParentCharset(aParentCharset); } \
  82.   NS_IMETHOD GetParentCharsetSource(PRInt32 *aParentCharsetSource) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParentCharsetSource(aParentCharsetSource); } \
  83.   NS_IMETHOD SetParentCharsetSource(PRInt32 aParentCharsetSource) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetParentCharsetSource(aParentCharsetSource); } 
  84.  
  85. #if 0
  86. /* Use the code below as a template for the implementation class for this interface. */
  87.  
  88. /* Header file */
  89. class nsDocumentCharsetInfo : public nsIDocumentCharsetInfo
  90. {
  91. public:
  92.   NS_DECL_ISUPPORTS
  93.   NS_DECL_NSIDOCUMENTCHARSETINFO
  94.  
  95.   nsDocumentCharsetInfo();
  96.  
  97. private:
  98.   ~nsDocumentCharsetInfo();
  99.  
  100. protected:
  101.   /* additional members */
  102. };
  103.  
  104. /* Implementation file */
  105. NS_IMPL_ISUPPORTS1(nsDocumentCharsetInfo, nsIDocumentCharsetInfo)
  106.  
  107. nsDocumentCharsetInfo::nsDocumentCharsetInfo()
  108. {
  109.   /* member initializers and constructor code */
  110. }
  111.  
  112. nsDocumentCharsetInfo::~nsDocumentCharsetInfo()
  113. {
  114.   /* destructor code */
  115. }
  116.  
  117. /* attribute nsIAtom forcedCharset; */
  118. NS_IMETHODIMP nsDocumentCharsetInfo::GetForcedCharset(nsIAtom * *aForcedCharset)
  119. {
  120.     return NS_ERROR_NOT_IMPLEMENTED;
  121. }
  122. NS_IMETHODIMP nsDocumentCharsetInfo::SetForcedCharset(nsIAtom * aForcedCharset)
  123. {
  124.     return NS_ERROR_NOT_IMPLEMENTED;
  125. }
  126.  
  127. /* attribute boolean forcedDetector; */
  128. NS_IMETHODIMP nsDocumentCharsetInfo::GetForcedDetector(PRBool *aForcedDetector)
  129. {
  130.     return NS_ERROR_NOT_IMPLEMENTED;
  131. }
  132. NS_IMETHODIMP nsDocumentCharsetInfo::SetForcedDetector(PRBool aForcedDetector)
  133. {
  134.     return NS_ERROR_NOT_IMPLEMENTED;
  135. }
  136.  
  137. /* attribute nsIAtom parentCharset; */
  138. NS_IMETHODIMP nsDocumentCharsetInfo::GetParentCharset(nsIAtom * *aParentCharset)
  139. {
  140.     return NS_ERROR_NOT_IMPLEMENTED;
  141. }
  142. NS_IMETHODIMP nsDocumentCharsetInfo::SetParentCharset(nsIAtom * aParentCharset)
  143. {
  144.     return NS_ERROR_NOT_IMPLEMENTED;
  145. }
  146.  
  147. /* attribute PRInt32 parentCharsetSource; */
  148. NS_IMETHODIMP nsDocumentCharsetInfo::GetParentCharsetSource(PRInt32 *aParentCharsetSource)
  149. {
  150.     return NS_ERROR_NOT_IMPLEMENTED;
  151. }
  152. NS_IMETHODIMP nsDocumentCharsetInfo::SetParentCharsetSource(PRInt32 aParentCharsetSource)
  153. {
  154.     return NS_ERROR_NOT_IMPLEMENTED;
  155. }
  156.  
  157. /* End of implementation class template. */
  158. #endif
  159.  
  160.  
  161. #endif /* __gen_nsIDocumentCharsetInfo_h__ */
  162.